package com.svmc.app.task.alarm;

import com.svmc.app.task.utils.CommonDefine;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

public class AlarmService extends BroadcastReceiver implements CommonDefine {

	@Override
	public void onReceive(Context context, Intent intent) {
		Intent intentAlarm = new Intent(context, DialogAlarm.class);
		intentAlarm.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		Bundle bundle = intent.getExtras();
		long id_task = bundle.getLong(ALARM_SERVICE_ID_TASK);
		intentAlarm.putExtra(ALARM_SERVICE_ID_TASK, id_task);
		
		context.startActivity(intentAlarm);
		
	}

	
	

}
